package net.steam.easyjoboa.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Menu entity. @author MyEclipse Persistence Tools
 */

public class Menu implements java.io.Serializable {

	// Fields

	private Integer menuId;
	private String menuName;
	private Integer parentId;
	private String resurl;
	private Integer orders;
	private Set roleses = new HashSet(0);

	// Constructors

	/** default constructor */
	public Menu() {
	}

	/** minimal constructor */
	public Menu(String menuName, Integer parentId) {
		this.menuName = menuName;
		this.parentId = parentId;
	}

	/** full constructor */
	public Menu(String menuName, Integer parentId, String resurl,
			Integer orders, Set roleses) {
		this.menuName = menuName;
		this.parentId = parentId;
		this.resurl = resurl;
		this.orders = orders;
		this.roleses = roleses;
	}

	// Property accessors

	public Integer getMenuId() {
		return this.menuId;
	}

	public void setMenuId(Integer menuId) {
		this.menuId = menuId;
	}

	public String getMenuName() {
		return this.menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	public Integer getParentId() {
		return this.parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public String getResurl() {
		return this.resurl;
	}

	public void setResurl(String resurl) {
		this.resurl = resurl;
	}

	public Integer getOrders() {
		return this.orders;
	}

	public void setOrders(Integer orders) {
		this.orders = orders;
	}

	public Set getRoleses() {
		return this.roleses;
	}

	public void setRoleses(Set roleses) {
		this.roleses = roleses;
	}

}